﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DexComanda
{
    public partial class Splashcreen : Form
    {
        public Splashcreen()
        {
            InitializeComponent();
        }

        private void timer_Tick(object sender, EventArgs e)
        {
            if(pbCarrega.Value < 100)
            {
                pbCarrega.Value = pbCarrega.Value + 2;
            }
            else
            {
                timer.Enabled = false;
                this.Visible = false; ;

                Main principal = new Main();
                principal.ShowDialog();
            }
        }
    }
}
